Component({

  properties: {
    cityFlag: {
      type: Boolean,
      value: false
    },
    newplace:{
      type:String,
      value:""
    },
    bcity: {
      type: String,
      value: ''
    },
    xcity: {
      type: String,
      value: ''
    }
  },

  methods: {
    cancle:function(){
      this.setData({
        cityFlag:false
      })
    },
    confirm:function(){
      let msg = this.data.xcity;
      console.log(msg)
      this.triggerEvent('cityevent',msg,{bubble:false})
      this.setData({
        cityFlag:false
      })
    }
  }
});
